package com.chenguo.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Catalog2Vo {
    /**
     * 1级分类id
     */
    private String catalogId;


    /**
     * 三级子分类
     */
    private List<Catalog3Vo> catalog3List;

    private String id;
    private String name;


    /**
     * 三级vo内部静态类
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Catalog3Vo{
        /**
         * 父分类 2级id
         */
        private String catalog2Id;
        private String id;
        private String name;
    }
}
